package com.qch.es;

import com.qch.es.service.PositionService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author qch
 * @Date 2021/7/2
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class PositionTset {
    @Autowired
    PositionService positionService;
    @Test
    public void query() throws IOException {
        List<Map<String, Object>> list = positionService.searchPos("java", 1, 100);
        System.out.println(list);
    }
}
